//
// Created by qianyi on 2023/4/28.
//

#ifndef BZDB_BZDB_FILE_OPERATE_H
#define BZDB_BZDB_FILE_OPERATE_H

#ifdef __cplusplus
extern "C"{
#endif

void BzDB_write_bin_to_disk(const char* bin_path , void * data , int data_len);
void BzDB_read_bin_from_disk(const char* bin_path , void *data , int data_len);
void BzDB_file_operate_demo1();

int BzDB_file_operate_read_line(FILE * fp , char *buf,int line_max);
void BzDB_file_operate_demo2();

void BzDB_file_write_content_to_txt(const char* file_path,const char * msg);
void BzDB_file_operate_demo3();

int BzDB_file_operate_read_content( const char* file_path, char* buf,int line_max );


#ifdef __cplusplus
}
#endif
#endif //BZDB_BZDB_FILE_OPERATE_H
